package com.llgz.hotelmanageapi.pojo.DO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Bernie_fang
 * @Description:
 * @create 2021/7/26 10:32
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FinancialBill {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private String checkinId;
    private String roomId;
    private String roomType;
    private String name;
    private String memberId;
    private String payType;
    private Double incomingAmount;
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    /**
     * 软删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Boolean deleted;

}
